.class public Lcom/waiqin365/lightapp/dailyreport/view/a;
.super Landroid/widget/BaseAdapter;


# instance fields
.field a:Z

.field public b:Ljava/util/List;

.field public c:I

.field public d:Z

.field private e:Z

.field private f:Landroid/content/Context;

.field private g:I

.field private h:Z

.field private i:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->e:Z

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->h:Z

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->i:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->a:Z

    const/4 v0, -0x1

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->c:I

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->d:Z

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->f:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a(I)Lcom/waiqin365/lightapp/dailyreport/c/b;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/b;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public a()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->c:I

    invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    const/4 v0, -0x1

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->c:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->i:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/a;->notifyDataSetChanged()V

    return-void
.end method

.method public a(II)V
    .locals 5

    const/4 v4, 0x1

    iput p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->g:I

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/a;->a(I)Lcom/waiqin365/lightapp/dailyreport/c/b;

    move-result-object v0

    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "startPostion="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ";endPosition="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    if-ge p1, p2, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    add-int/lit8 v2, p2, 0x1

    invoke-interface {v1, v2, v0}, Ljava/util/List;->add(ILjava/lang/Object;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    :goto_0
    iput-boolean v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->h:Z

    iput-boolean v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->i:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/a;->notifyDataSetChanged()V

    return-void

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v1, p2, v0}, Ljava/util/List;->add(ILjava/lang/Object;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    add-int/lit8 v1, p1, 0x1

    invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_0
.end method

.method public a(Lcom/waiqin365/lightapp/dailyreport/c/b;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->i:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/a;->notifyDataSetChanged()V

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->a:Z

    return-void
.end method

.method public b(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->c:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/a;->notifyDataSetChanged()V

    return-void
.end method

.method public b(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->e:Z

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    goto :goto_0
.end method

.method public synthetic getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/a;->a(I)Lcom/waiqin365/lightapp/dailyreport/c/b;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 11

    const/16 v10, 0x8

    const/4 v9, 0x0

    const/4 v8, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->f:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0300f6

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    const v0, 0x7f0c05ca

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f0c05cb

    invoke-virtual {v2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/a;->a(I)Lcom/waiqin365/lightapp/dailyreport/c/b;

    move-result-object v3

    iget-boolean v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->d:Z

    if-eqz v4, :cond_5

    iget-boolean v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/b;->c:Z

    if-nez v4, :cond_0

    iget-boolean v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/b;->c:Z

    if-nez v4, :cond_5

    iget-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/b;->a:Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    const-wide/16 v6, -0x3

    cmp-long v4, v4, v6

    if-nez v4, :cond_5

    :cond_0
    invoke-virtual {v1, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    iget-object v3, v3, Lcom/waiqin365/lightapp/dailyreport/c/b;->b:Ljava/lang/String;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-nez p1, :cond_1

    invoke-virtual {v0, v9}, Landroid/widget/TextView;->setEnabled(Z)V

    :cond_1
    iget-boolean v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->h:Z

    if-eqz v3, :cond_2

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->g:I

    if-ne p1, v3, :cond_2

    iget-boolean v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->e:Z

    if-nez v3, :cond_2

    const-string/jumbo v3, ""

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setSelected(Z)V

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setEnabled(Z)V

    iput-boolean v9, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->h:Z

    :cond_2
    iget-boolean v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->a:Z

    if-nez v3, :cond_3

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-ne p1, v3, :cond_3

    const-string/jumbo v3, ""

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setSelected(Z)V

    invoke-virtual {v0, v8}, Landroid/widget/TextView;->setEnabled(Z)V

    :cond_3
    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/a;->c:I

    if-ne v3, p1, :cond_4

    const-string/jumbo v3, ""

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v0, v10}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {v1, v10}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_4
    return-object v2

    :cond_5
    const/4 v4, 0x4

    invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method
